package cn.wolfcode.crm.mapper;


import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface PermissionMapper {

    int insert(Permission entity);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission entity);

    int queryForCount(QueryObject qo);

    List<Permission> queryForList(QueryObject qo);

    List<Permission> queryByRoleId(Long roleId);

    List<String> getPermissonResourceByEmployeeId(Long employeeId);
}